/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



package sonia.golf.util;

/**
 *
 * @author Sebastian Sdorra
 */
public class AssertUtil
{

  /**
   * Method description
   *
   *
   * @param value
   */
  public static void assertIsNotEmpty(String value)
  {
    if (Util.isEmpty(value))
    {
      throw new IllegalStateException("value is required");
    }
  }

  /**
   * Method description
   *
   *
   * @param object
   */
  public static void assertNotNull(Object object)
  {
    if (object == null)
    {
      throw new IllegalStateException("object is required");
    }
  }
}
